home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Xitami Multithreaded Web Server.exe / LRWPLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-05  |  2.1 KB  |  72 lines

  1. /************************************************************************
  2.                Copyright (c) 1997 by Total Control Software
  3.                          All Rights Reserved
  4. ------------------------------------------------------------------------
  5.  
  6. Module Name:    lrwplib.h
  7.  
  8. Description:    Small library of routines to assist with the creation
  9.                 of LRWP Peer applications.
  10.  
  11.  
  12. Creation Date:  1998/05/01 9:47:17PM
  13. Updated:        1999/08/18, by Xitami Team <xitami@imatix.com> for LRWP 2.0
  14. Updated:        1999/11/05, by Pascal Antonnaux <pascal@imatix.com>
  15.                             for posted size in context 
  16.  
  17. # License:      This is free software.  You may use this software for any
  18. #               purpose including modification/redistribution, so long as
  19. #               this header remains intact and that you do not claim any
  20. #               rights of ownership or authorship of this software.  This
  21. #               software has been tested, but no warranty is expressed or
  22. #               implied.
  23.  
  24. ************************************************************************/
  25.  
  26. #ifndef __LRWPLIB_H__
  27. #define __LRWPLIB_H__
  28.  
  29. #include "sfl.h"
  30.  
  31. //---------------------------------------------------------------------------
  32.  
  33.  
  34. typedef struct _LRWP {
  35.     sock_t  sock;
  36.     SYMTAB* cgi;
  37.     char*   post_data;
  38.  
  39.     char*   outbuf;
  40.     size_t  size;
  41.     size_t  allocated;
  42.     size_t  post_size;
  43.  
  44. } LRWP;
  45.  
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. char* lrwp_connect          (LRWP* lrwp, char* appname, char* host,
  52.                              char* port, char* vhost);
  53. char* lrwp2_connect         (LRWP* lrwp, char* appname, char* host,
  54.                              char* port, char* vhost,   char* passphrase);
  55. int  lrwp_accept_request    (LRWP* lrwp);
  56. int  lrwp_send_string       (LRWP* lrwp, char* st);
  57. int  lrwp_send_data         (LRWP* lrwp, void* data, size_t len);
  58. int  lrwp_finish_request    (LRWP* lrwp);
  59. int  lrwp_close             (LRWP* lrwp);
  60. void lrwp_cleanup           (LRWP* lrwp);
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66.  
  67.  
  68. //---------------------------------------------------------------------------
  69. #endif
  70.  
  71.  
  72.